//
//  DataModel.h
//  ChengHuiTong
//
//  Created by ypwl on 15/11/5.
//  Copyright © 2015年 张文权. All rights reserved.
//

#import <Foundation/Foundation.h>


//@class Data,List;
//@class Data,List;
@interface DataModel : NSObject
-(instancetype)initWithDic:(NSDictionary *)dic;

/**
 * 将实例转化为字典
 */
- (NSDictionary *)dictionaryWithModel;
@end


#pragma mark  首页推荐model

@interface RecommendModel : NSObject


/*
 bid	标id
 borrow_type	标类型(数组)
 award	投标奖励
 title	标的名称
 account	借款金额
 style	还款方式
 progress_bar	进度条
 apr	年化利率
 time_limit	借款期限
 is_datetype	期限类型
 apr_add	加息
 */
@property (nonatomic, strong) NSArray<NSNumber *> *borrow_type;

@property (nonatomic, copy) NSString *account;

@property (nonatomic, copy) NSString *style;

@property (nonatomic, copy) NSString *time_limit;

@property (nonatomic, copy) NSString *is_datetype;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *progress_bar;

@property (nonatomic, copy) NSString *apr;

@property (nonatomic, copy) NSString *bid;

@property (nonatomic, copy) NSString *number;

@property (nonatomic, copy) NSString *award;

@property (nonatomic, copy) NSString *apr_add;

-(instancetype)initWithDic:(NSDictionary *)dic;

@end

@interface ZQListModel : DataModel

@property (nonatomic, copy) NSString *tid; //项目id
@property (nonatomic, copy) NSString *title; //标题
@property (nonatomic, copy) NSString *apr; //年利率
@property (nonatomic, copy) NSString *remain_periods; //剩余期数
@property (nonatomic, copy) NSString *sale_price; //转让价格
@property (nonatomic, copy) NSString *status; //状态 0转让中 1已售完

-(instancetype)initWithDic:(NSDictionary *)dic;

@end



#pragma 账户详情

/*
 type	类型
 money	操作金额
 freeze_money	冻结金额
 addtime	纪录时间
 */

@interface AccountDetails : NSObject

@property (nonatomic, copy) NSString *addtime;

@property (nonatomic, copy) NSString *money;

@property (nonatomic, copy) NSString *type;

@property (nonatomic, copy) NSString *freeze_money;

-(instancetype)initWithDic:(NSDictionary *)dic;
@end

@interface PayBackModel : NSObject

@property (nonatomic, copy) NSString *bid;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *account_act;

@property (nonatomic, copy) NSString *status;

@property (nonatomic, copy) NSString *addtime;

@property (nonatomic, copy) NSString *apr;

@property (nonatomic, copy) NSString *income_total;

@property (nonatomic, copy) NSString *is_datetype;

@property (nonatomic, copy) NSString *number;

@property (nonatomic, strong) NSDictionary *time_limit;

@property (nonatomic, strong) NSString *borrow_type;

-(instancetype)initWithDic:(NSDictionary *)dic;

@end


//未收款项
@interface tenderRecoring : NSObject

@property (nonatomic, assign) NSInteger status;

@property (nonatomic, copy) NSString *time_limit;

@property (nonatomic, copy) NSString *is_datetype;

@property (nonatomic, copy) NSString *capital;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *periods;


@property (nonatomic, copy) NSString *late_days;

@property (nonatomic, copy) NSString *late_interest;

@property (nonatomic, copy) NSString *bid;

@property (nonatomic, copy) NSString *repay_account;

@property (nonatomic, copy) NSString *interest;

@property (nonatomic, copy) NSString *repay_time;


-(instancetype)initWithDic:(NSDictionary *)dic;

@end




@interface MyReturnDetail : NSObject

@property (nonatomic, copy) NSString *bid;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *repay_time;

@property (nonatomic, copy) NSString *repay_account;

@property (nonatomic, copy) NSString *periods;

-(instancetype)initWithDic:(NSDictionary *)dic;
@end

@interface VipModel : NSObject
@property (nonatomic, assign) NSInteger customer_id;
@property (nonatomic, assign) NSInteger leader;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *qq;
@property (nonatomic, copy) NSString *tel;
@property (nonatomic, copy) NSString *head_img;

@property(nonatomic,assign)BOOL isColor;
-(instancetype)initWithDic:(NSDictionary *)dic;
@end

@interface RedbagModel : DataModel
@property (nonatomic, copy) NSString *status;

@property (nonatomic, copy) NSString *redid;

@property (nonatomic, copy) NSString *money;

@property (nonatomic, copy) NSString *name;

@property (nonatomic, copy) NSString *end_time;

@property (nonatomic, copy) NSString *remark;

@property (nonatomic, copy) NSString *min_tender;

@property (nonatomic,copy)NSString *max_tender; //此红包或加息劵最大投资金额 0为不限

@property (nonatomic, copy) NSString *apr; //加息劵 加息利率

@property (nonatomic, copy) NSString *couponid; //加息劵ID

@property(nonatomic,assign)BOOL canUse;
@end

@interface CouponModel : DataModel
@property (nonatomic, copy) NSString *status; //加息劵状态 1未使用，2已使用，3已过期

@property (nonatomic, copy) NSString *couponid; //加息劵id

@property (nonatomic, copy) NSString *apr; //加息利率

@property (nonatomic, copy) NSString *name; //加息劵名称

@property (nonatomic, copy) NSString *end_time; //加息劵有效期

@property (nonatomic, copy) NSString *remark; //加息劵说明

@end


@interface newUserBid : DataModel


@property (nonatomic, copy) NSString *time_limit;

@property (nonatomic, copy) NSString *apr_add;

@property (nonatomic, copy) NSString *account;

@property (nonatomic, copy) NSString *status;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *lowest_account;

@property (nonatomic, copy) NSString *apr;
@property(nonatomic,copy)NSString*bid;


@end




@interface autoListModel : DataModel

@property (nonatomic, copy) NSString *tender_account;

@property (nonatomic, copy) NSString *validity_end;

@property (nonatomic, copy) NSString *min_account;

@property (nonatomic, copy) NSString *autoid;

@property (nonatomic, copy) NSString *timelimit;

@property (nonatomic, copy) NSString *validity_start;

@end

